.class public final Lcom/farmis/feedme/views/FeedbackView;
.super Lcom/farmis/feedme/abs/AbsContentView;
.source "FeedbackView.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/farmis/feedme/views/FeedbackView$FeedBackListener;
    }
.end annotation


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/farmis/feedme/views/FeedbackView$FeedBackListener;)V
    .locals 2

    const-string v0, "activity"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "listener"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 15
    invoke-direct {p0, p1}, Lcom/farmis/feedme/abs/AbsContentView;-><init>(Landroid/app/Activity;)V

    .line 23
    sget v0, Lcom/farmis/feedme/R$layout;->feedback_form:I

    invoke-static {p1, v0, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 24
    sget v0, Lcom/farmis/feedme/R$id;->titleText:I

    invoke-virtual {p0, v0}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string v1, "titleText"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v1, Lcom/farmis/feedme/Conf;->Companion:Lcom/farmis/feedme/Conf$Companion;

    invoke-virtual {v1}, Lcom/farmis/feedme/Conf$Companion;->getIns()Lcom/farmis/feedme/Conf;

    move-result-object v1

    invoke-virtual {v1}, Lcom/farmis/feedme/Conf;->getQuestionTitle()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 25
    sget v0, Lcom/farmis/feedme/R$id;->question:I

    invoke-virtual {p0, v0}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string v1, "question"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v1, Lcom/farmis/feedme/Conf;->Companion:Lcom/farmis/feedme/Conf$Companion;

    invoke-virtual {v1}, Lcom/farmis/feedme/Conf$Companion;->getIns()Lcom/farmis/feedme/Conf;

    move-result-object v1

    invoke-virtual {v1}, Lcom/farmis/feedme/Conf;->getQuestion()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 26
    sget v0, Lcom/farmis/feedme/R$id;->skipButton:I

    invoke-virtual {p0, v0}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const-string v1, "skipButton"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/farmis/feedme/abs/AbsContentView;->getStrings()Lcom/farmis/feedme/java_interfaces/FeedBackTranslationInterface;

    move-result-object v1

    invoke-interface {v1, p1}, Lcom/farmis/feedme/java_interfaces/FeedBackTranslationInterface;->getClose(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 27
    sget v0, Lcom/farmis/feedme/R$id;->followButton:I

    invoke-virtual {p0, v0}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const-string v1, "followButton"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/farmis/feedme/abs/AbsContentView;->getStrings()Lcom/farmis/feedme/java_interfaces/FeedBackTranslationInterface;

    move-result-object v1

    invoke-interface {v1, p1}, Lcom/farmis/feedme/java_interfaces/FeedBackTranslationInterface;->getSend(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 29
    sget v0, Lcom/farmis/feedme/R$id;->editText:I

    invoke-virtual {p0, v0}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    const-string v1, "editText"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget v1, Lcom/farmis/feedme/R$color;->feedme_dialog_text_primary:I

    invoke-static {p1, v1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result v1

    invoke-static {v0, v1}, Lcom/farmis/feedme/utils/UtilsKt;->setColors(Landroid/widget/EditText;I)V

    .line 30
    sget v0, Lcom/farmis/feedme/R$id;->followButton:I

    invoke-virtual {p0, v0}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    sget v1, Lcom/farmis/feedme/R$color;->mainColor:I

    invoke-static {p1, v1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setTextColor(I)V

    .line 31
    sget p1, Lcom/farmis/feedme/R$id;->followButton:I

    invoke-virtual {p0, p1}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    new-instance v0, Lcom/farmis/feedme/views/FeedbackView$1;

    invoke-direct {v0, p0, p2}, Lcom/farmis/feedme/views/FeedbackView$1;-><init>(Lcom/farmis/feedme/views/FeedbackView;Lcom/farmis/feedme/views/FeedbackView$FeedBackListener;)V

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 40
    sget p1, Lcom/farmis/feedme/R$id;->skipButton:I

    invoke-virtual {p0, p1}, Lcom/farmis/feedme/views/FeedbackView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    new-instance v0, Lcom/farmis/feedme/views/FeedbackView$2;

    invoke-direct {v0, p2}, Lcom/farmis/feedme/views/FeedbackView$2;-><init>(Lcom/farmis/feedme/views/FeedbackView$FeedBackListener;)V

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public _$_findCachedViewById(I)Landroid/view/View;
    .locals 2

    iget-object v0, p0, Lcom/farmis/feedme/views/FeedbackView;->_$_findViewCache:Ljava/util/HashMap;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/farmis/feedme/views/FeedbackView;->_$_findViewCache:Ljava/util/HashMap;

    :cond_0
    iget-object v0, p0, Lcom/farmis/feedme/views/FeedbackView;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    if-nez v0, :cond_1

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/farmis/feedme/views/FeedbackView;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    return-object v0
.end method
